package io;

import javax.imageio.stream.FileImageOutputStream;
import java.io.File;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        File file = new File("fos.dat");
        FileImageOutputStream fos = new FileImageOutputStream(file);
        fos.write(11111111);
        fos.write(2);
        fos.write(1);
        System.out.println("写出完毕！");
        fos.close();
    }
}
